<li id="<%= dom_id(word_definition) %>">
  <%= h(word_definition.text).to_s %>
  <% if self.instance_variable_defined?(:@show_clear_btn) && @show_clear_btn %>
    <small>
      <%= link_to_function icon_image_tag('delete.png'), "#{update_page {|page| page.remove(dom_id(word_definition))}}" %>
    </small>
  <% end %>
</li>